﻿using System;
using My.Entity;
using My.DAL;

namespace My.ConsoleTest
{
    public class APP
    {
        public APP()
        {
            Et_User iUser = new Et_User();
            iUser.UserAccount = "admin";
            iUser.UserPassword = "gushihao";
            iUser.UserName = "顾世豪";
            iUser.Age = 24;

            var Db = ContextFactory.CurrentDbContext;
            Db.Add(iUser);
            Db.SaveChanges();
        }
    }


    class Program
    {
        static void Main(string[] args)
        {
            APP App = new APP();
        }
    }
}
